package com.cykj.service;

import com.cykj.bean.Goods;
import com.cykj.bean.PageConfig;
import com.cykj.bean.Tbluser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;


public interface IndexService {

    List<Tbluser> selectUserList();

    //登录
    public String login(String uname,String upwd);


    //注册
    public int regiest(Tbluser tbluser);


    //插入日志
    public int addLog(String module,
                      String action,
                      String remark);

    public  int selectCount();


    public List<Tbluser> selectUserList2(RowBounds rowBounds);

    //假删除,（修改状态）
    public int deleteUpdate(String uid);


    //修改信息
    public int updateInfo(String uname,
                          String idCard,
                          String address,
                          String uid);


    // 查询商品一共有多少
    public  int selectGoodsCount();

    //商品分页查询
    public List<Tbluser> selectGoodsList(RowBounds rowBounds);

    //删除(map)
    public Map<String,Object> goodsTables(PageConfig pageConfig);


    //删除商品,（修改状态）
    public int deleteGoods(@Param(value = "id") String id);

    //修改商品
    public int updateGoods(Goods goods);
}

